package com.molichuxing.services.infrastructure.bean;

import java.time.LocalDateTime;

import com.molichuxing.framework.bean.RootBean;

public class OfflineBookyueBean extends RootBean {
    /**
     *  id
     */
    private Integer id;

    /**
     * 订单号 order_code
     */
    private Long orderCode;

    /**
     * 付款凭证 voucher
     */
    private String voucher;

    /**
     * 操作人id opt_id
     */
    private Integer optId;

    /**
     * 操作人name opt_name
     */
    private String optName;

    /**
     * 操作时间 opt_time
     */
    private LocalDateTime optTime;

    /**
     * 创建时间 gmt_create
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间 gmt_modified
     */
    private LocalDateTime gmtModified;

    /**
     * payment_offline_bookyue
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     * @date 2019-11-25 19:57:46
     * @return id 
     */
    @Override
	public Integer getId() {
        return id;
    }

    /**
     * 
     * @date 2019-11-25 19:57:46
     * @param id 
     */
    @Override
	public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 订单号
     * @date 2019-11-25 19:57:46
     * @return order_code 订单号
     */
    public Long getOrderCode() {
        return orderCode;
    }

    /**
     * 订单号
     * @date 2019-11-25 19:57:46
     * @param orderCode 订单号
     */
    public void setOrderCode(Long orderCode) {
        this.orderCode = orderCode;
    }

    /**
     * 付款凭证
     * @date 2019-11-25 19:57:46
     * @return voucher 付款凭证
     */
    public String getVoucher() {
        return voucher;
    }

    /**
     * 付款凭证
     * @date 2019-11-25 19:57:46
     * @param voucher 付款凭证
     */
    public void setVoucher(String voucher) {
        this.voucher = voucher == null ? null : voucher.trim();
    }

    /**
     * 操作人id
     * @date 2019-11-25 19:57:46
     * @return opt_id 操作人id
     */
    public Integer getOptId() {
        return optId;
    }

    /**
     * 操作人id
     * @date 2019-11-25 19:57:46
     * @param optId 操作人id
     */
    public void setOptId(Integer optId) {
        this.optId = optId;
    }

    /**
     * 操作人name
     * @date 2019-11-25 19:57:46
     * @return opt_name 操作人name
     */
    public String getOptName() {
        return optName;
    }

    /**
     * 操作人name
     * @date 2019-11-25 19:57:46
     * @param optName 操作人name
     */
    public void setOptName(String optName) {
        this.optName = optName == null ? null : optName.trim();
    }

    /**
     * 操作时间
     * @date 2019-11-25 19:57:46
     * @return opt_time 操作时间
     */
    public LocalDateTime getOptTime() {
        return optTime;
    }

    /**
     * 操作时间
     * @date 2019-11-25 19:57:46
     * @param optTime 操作时间
     */
    public void setOptTime(LocalDateTime optTime) {
        this.optTime = optTime;
    }

    /**
     * 创建时间
     * @date 2019-11-25 19:57:46
     * @return gmt_create 创建时间
     */
    @Override
	public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 创建时间
     * @date 2019-11-25 19:57:46
     * @param gmtCreate 创建时间
     */
    @Override
	public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 修改时间
     * @date 2019-11-25 19:57:46
     * @return gmt_modified 修改时间
     */
    @Override
	public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    /**
     * 修改时间
     * @date 2019-11-25 19:57:46
     * @param gmtModified 修改时间
     */
    @Override
	public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OfflineBookyueBean other = (OfflineBookyueBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderCode() == null ? other.getOrderCode() == null : this.getOrderCode().equals(other.getOrderCode()))
            && (this.getVoucher() == null ? other.getVoucher() == null : this.getVoucher().equals(other.getVoucher()))
            && (this.getOptId() == null ? other.getOptId() == null : this.getOptId().equals(other.getOptId()))
            && (this.getOptName() == null ? other.getOptName() == null : this.getOptName().equals(other.getOptName()))
            && (this.getOptTime() == null ? other.getOptTime() == null : this.getOptTime().equals(other.getOptTime()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderCode() == null) ? 0 : getOrderCode().hashCode());
        result = prime * result + ((getVoucher() == null) ? 0 : getVoucher().hashCode());
        result = prime * result + ((getOptId() == null) ? 0 : getOptId().hashCode());
        result = prime * result + ((getOptName() == null) ? 0 : getOptName().hashCode());
        result = prime * result + ((getOptTime() == null) ? 0 : getOptTime().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderCode=").append(orderCode);
        sb.append(", voucher=").append(voucher);
        sb.append(", optId=").append(optId);
        sb.append(", optName=").append(optName);
        sb.append(", optTime=").append(optTime);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}